package week3.day16;

/**
 * @Author fengzihao
 * @Date 2024-04-30 19:59
 */
public class EnumSeason {
    public static void main(String[] args) {
        Season season = Season.SPRING;
        getSeason(season);

    }
    public static void getSeason(Season season){
        switch (season){
            case SPRING:
                System.out.println("春季");
                break;
            case SUMMER:
                System.out.println("夏季");
                break;
            case AUTUMN:
                System.out.println("秋季");
                break;
            case WINTER:
                System.out.println("冬季");
                break;
            default:
                break;
        }
    }
}
enum Season{
    SPRING,
    SUMMER,
    AUTUMN,
    WINTER;

}
